package com.udata.server.dao;

import com.udata.server.dao.impl.TiebaExpDaoImpl;
import com.udata.server.model.TiebaExp;
import com.udata.shared.exception.OperationException;

public abstract class TiebaExpDao {
	private static TiebaExpDao instance = null;

	public static TiebaExpDao getinstance() {
		if (instance == null) {
			instance = new TiebaExpDaoImpl();
		}
		return instance;
	}

	public abstract TiebaExp saveTiebaExp(TiebaExp te);

	public abstract Boolean saveData(String category, Integer pageNum)
			throws OperationException;
	
	public abstract Boolean saveData(String category)
			throws OperationException;
	
	public abstract String getJsonData(String category) throws OperationException;

}
